package net.htjs.jdkgrammer.jdk12;

import lombok.extern.slf4j.Slf4j;

@Slf4j
public class SwitchTest {

    public static void main(String[] args) {
        int month = 3;
        switch(month) {
            case 3, 4, 5:
                log.info("春天");
                break;
            case 6, 7, 8:
                log.info("夏天");
                break;
            case 9,10,11:
                log.info("秋天");
                break;
            case 12,1,2:
                log.info("冬天");
                break;
            default:
                log.info("其他");
                break;
        }

    }
}
